package info.woodcock.mybatis.controller;

import info.woodcock.mybatis.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @Autowired
    private CityService service;

    @RequestMapping(value = "/cities",method = RequestMethod.GET)
    public void cities(){
        service.select();
    }



}
